//
//  MyBalanceListCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2018/1/4.
//  Copyright © 2018年 beisheng. All rights reserved.
//

#import "MyBalanceListCell.h"

@interface MyBalanceListCell ()
@property (weak, nonatomic) IBOutlet UILabel *leftTopLabel;
@property (weak, nonatomic) IBOutlet UILabel *leftBottomLabel;

@property (weak, nonatomic) IBOutlet UILabel *rightTopLabel;

@property (weak, nonatomic) IBOutlet UILabel *rightBottomLabel;

@end
@implementation MyBalanceListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.leftTopLabel.font = MYFONT(15);
    
    self.leftBottomLabel.font = MYFONT(14);
    self.leftBottomLabel.textColor = darkGray;
    
    self.rightTopLabel.font = MYFONT(15);
    self.rightTopLabel.textColor = [UIColor orangeColor];
    
    self.rightBottomLabel.font = MYFONT(14);
    
    self.rightBottomLabel.textColor = darkGray;
    // Initialization code
}

- (void)setModel:(MyBalanceModel *)model{
    
    _model = model;
    
    self.leftTopLabel.text = _model.type_name;
    
    self.leftBottomLabel.text = _model.create_time;
    
//    if ([_model.sign isEqualToString:@"1"]) {
    
        self.rightTopLabel.text = [NSString stringWithFormat:@"%@",_model.number];
        
//    } else {
//
//        self.rightTopLabel.text = [NSString stringWithFormat:@"%@",_model.number];
//
//    }
    
    
    self.rightBottomLabel.text = _model.current_balance;
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
